opus.Gizmo({
	name: "main",
	layoutKind: "absolute",
	dropTarget: true,
	type: "Palm.Mojo.Panel",
	h: "100%",
	styles: {
		zIndex: 2
	},
	components: [
		{
			name: "Flickr",
			onSuccess: "FlickrSuccess",
			onFailure: "",
			url: "http://query.yahooapis.com/v1/public/yql",
			parameters: {
				q: "select * from flickr.photos.interestingness(10)",
				format: "json"
			},
			handleAs: "json",
			type: "Palm.Mojo.WebService"
		},
		{
			name: "download1",
			onSuccess: "download1Success",
			targetDir: "/media/internal/wallpapers",
			type: "Palm.Mojo.Download"
		},
		{
			name: "wallpaper1",
			type: "Palm.Mojo.Wallpaper"
		}
	],
	chrome: [
		{
			name: "button1",
			plane: "100",
			ontap: "button1Tap",
			disabled: undefined,
			label: "Set Wallpaper",
			type: "Palm.Mojo.Button",
			l: 0,
			b: 0
		},
		{
			name: "imageView1",
			ontap: "displayButton",
			onRightFunction: "imageView1RightFunction",
			type: "Palm.Mojo.ImageView",
			l: 0,
			t: 0
		}
	]
});